<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script type="text/javascript" src="${ctx}/statics/js/common/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
    var contextPath = "${ctx}";
</script>
<div class="nav">
	<div class="nav_t">全部商品分类</div>
    <div class="leftNav">
        <ul> 
        	<c:forEach var="category1" items="${listProductCategory }">
      	<c:if test="${category1.type == 1 }">
              <li>
              	<div class="fj">
                  	<span class="n_img"><span></span></span>
                      <span class="fl">
                      	${category1.name}
                      </span>
                  </div>
                  <div class="zj" style="display: none;">
                      <div class="zj_l">
                          <c:forEach var="category2" items="${listProductCategory }">
                           <c:if test="${category2.type == 2 and category2.parentId == category1.id  }">
                          		<div class="zj_l_c">
                                <h2>
                                	<a href="${ctx}/product?action=queryList&categoryId=${category2.id}&categoryLevel=${category2.type}&currPage=1">${category2.name }</a>
                                </h2>
                                <c:forEach var="category3" items="${listProductCategory }">
                                	<c:if test="${category3.type == 3 and category3.parentId == category2.id  }">
                                		<a href="${ctx}/product?action=queryList&categoryId=${category3.id}&categoryLevel=${category3.type}&currPage=1">${category3.name }</a> &nbsp;&nbsp;
                                	</c:if>
                                </c:forEach>
                            </div>
                           </c:if>
                          </c:forEach>

                      </div>
                      <div class="zj_r">
                          <a href="javascript:void(0)"><img src="images/n_img1.jpg" width="236" height="200"></a>
                          <a href="javascript:void(0)"><img src="images/n_img2.jpg" width="236" height="200"></a>
                      </div>
                  </div>
              </li>
            	</c:if>
      </c:forEach>  
        </ul>            
    </div>
</div>  
<!--End 商品分类详情 End-->                                                     
<ul class="menu_r">                                                                                                                                               
   	<li><a href="Index.html">首页</a></li>
       <c:forEach var="category" items="${listProductCategory }">
    	<c:if test="${category.type == 1 }">
    		<li><a href="${ctx}/product?action=queryList&categoryId=${category.id}&categoryLevel=${category.type}&currPage=1">${category.name }</a></li>
    	</c:if>
    </c:forEach>
</ul>
<div class="m_ad">中秋送好礼！</div>